package es.caeboxapps.game;

import es.caeboxapps.game.utils.Utils;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

public class LaberintoActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.laberinto_activity);
		// Establecemos el numeroi de saltos disponibles
		// ----------------------------------------------
		LinearLayout linearLayoutSaltos = (LinearLayout) findViewById(R.id.linearLayoutSaltos);
		Utils.setNumeroSaltos(linearLayoutSaltos);
	}

	// -----------------------------------------------------------------
	// SALTAR PREGUNTA
	// -----------------------------------------------------------------
	public void saltarPregunta(View view) {
		if (GameApplication.numeroSaltos > 0) {

			if (GameApplication.listaPreguntas.size() > GameApplication.posicionPreguntaActual + 1) {
				Utils.mostrarDialogSaltarPregunta(LaberintoActivity.this);
			}
		}
	}
}
